cmake_minimum_required(VERSION 3.16)
project(main C)

set(CMAKE_C_STANDARD 11)
set(CMAKE_C_COMPILER "arm-none-linux-gnueabihf-gcc")

include_directories(Config GUI/Core GUI/MultiLayer GUI/Widget GUI/WM fb)

aux_source_directory(. root)
aux_source_directory(fb fb)
aux_source_directory(GUI/AntiAlias AntiAlias)
aux_source_directory(GUI/ConvertColor ConvertColor)
aux_source_directory(GUI/ConvertMono ConvertMono)
aux_source_directory(GUI/Core Core)
aux_source_directory(GUI/Font Font)
aux_source_directory(GUI/LCDDriver LCDDriver)
aux_source_directory(GUI/MemDev MemDev)
aux_source_directory(GUI/MultiLayer MultiLayer)
aux_source_directory(GUI/Widget Widget)
aux_source_directory(GUI/WM WM)

link_libraries(m)

add_executable(main ${root} ${fb} ${AntiAlias} ${ConvertColor}
        ${ConvertMono} ${Core} ${Font} ${LCDDriver} ${MemDev}
        ${Multilayer} ${Widget} ${WM})
